package com.eason.dao;

import com.eason.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

    int addBook(Books books);
    int deleteById(@Param("bookId") int id);
    int updateBook(Books books);
    Books selectBookById(@Param("bookId")int id);
    List<Books> selectAllBooks();

    Books seleteBookByName(@Param("bookName")String bookName);
}
